package model.semantics;

import model.State;

public class ConstNode extends Node<Integer> {

	private int myValue;

	public ConstNode(int value) {
		myValue = value;
	}

	@Override
	public Integer evaluate(State<Integer> state) {
		return myValue;
	}

	@Override
	public String toString() {
		return Integer.toString(myValue);
	}
}
